package cn.hml.org.mapper;

import cn.hml.org.domain.Employee;
import cn.hml.org.query.EmployeeQuery;

import java.util.List;

public interface EmployeeMapper {

    List<Employee> loadAll(); //查询所有对象

    Employee loadById(Long id);//查询单个对象

    void sava (Employee employee);

    void update(Employee employee);

    void del(Long id);
    //查询总数量
    Integer queryCount(EmployeeQuery employeeQuery);

    //查询当前页的分页数据
    List<Employee> querydata(EmployeeQuery employeeQuery);


}
